<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
    <style>
        .box{
            width: 100px;
            height: 30px;
            border: 1px solid pink;
            /*垂直居中 技巧：设置和该元素高度一致*/
            line-height: 30px;
            /*水平居中*/
            text-align: center;
        }
        .container{
            width: 900px;
            /*使用弹性盒模型布局*/
            display: flex;
        }
    </style>
 
</head>
<body>
   <div id="app">
        <div class="container">
            <div v-for="item in 9">
                <div v-for="i in 9" class="box" >
                    {{item}}*{{i}}={{item*i}}
                </div>
            </div>
        </div> 

        <br>
        
        <div id="app">
            <div >
                <div v-for="item in 9" class="container">
                    <div v-for="i in item" class="box" >
                        {{item}}*{{i}}={{item*i}}
                    </div>
                </div>
            </div>     
        
    </div>

</body>
</html>
<script>
    new Vue({
        el:'#app',
        return:{

        }
    })
</script>